<template>
  <div class="main ub ub-ver">
    <NavBar title="线路"></NavBar>
    <map class="map" :scale="scale" :max-scale="18" :longitude="center[0]" :latitude="center[1]" :markers="markers" :circles="circles" :polyline="polyline" show-location />
  </div>
</template>
<script>
import service from '@/utils/http'
import constant from '@/utils/constant'
import { errDialog, loading } from '@/utils/util'
import { reverseGeocoder } from '@/utils/locationUtil'
export default {
    filters: {
        numFormat(num) {
            return Number(num).toFixed(2);
        }
    },
    data() {
        return {
            scale: 15,
            center: [116.50, 40.00],
            circles: [],
            markers: [],
            polyline: []
        }
    },
    onLoad() {
        uni.getLocation({
            type: 'gcj02',
            success: (res) => {
                const point = [res.longitude, res.latitude]
                this.center = point
            },
            fail: () => {
                console.log("error")
            }
        })
    },
    methods: {
        getData(latitude, longitude, city) {

        }
    }
}

</script>
<style scoped>
.main{width: 100%; height: 100%;}
.toper{ width: 100%; height: 290rpx;box-sizing: content-box;overflow: hidden;}
.map {
	width: 750upx;
	height: 100vh;
	margin: 0;
	padding: 0;
}
</style>
